package stdio.costa.imoca.api;

import org.springframework.beans.factory.annotation.Autowired;

import stdio.costa.imoca.model.MocaUser;
import stdio.costa.imoca.spi.MocaUserSpi;

public class BaseApi {

	@Autowired
	private MocaUserSpi mocaUserSpi;

	public MocaUser getMocaUser(String accessTokenCode) {
		return mocaUserSpi.getMocaUserByAccessToken(accessTokenCode);
	}
}
